package com.example.mac.yuejian14.activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.example.mac.yuejian14.R;


public abstract class BaseActivity extends AppCompatActivity {
    protected int layout_file= R.layout.activity_traindetail;
    protected static int uid;
    abstract void initViews();
    abstract void initEvents();
    abstract void initData();
    void setLayout(int layout_file)
    {
        setContentView(layout_file);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        //隐藏系统标题栏
        setLayout(layout_file);
        initViews();
        initEvents();
        initData();
    }

    public int getUid(){

        return uid;
    }

    public static void setUid() {
    }
}
